projects
/
project
/
rpcd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd017ba
)
iwinfo: export center channel for info ubus call
author
Ansuel Smith
<
[email protected]
>
Sun, 6 Dec 2020 01:11:18 +0000
(
02:11
+0100)
committer
Daniel Golle
<
[email protected]
>
Tue, 5 Jan 2021 19:09:17 +0000
(19:09 +0000)
Iwinfo export the center channel sued by the wifi. Include this data in
the ubus info call to better know the channel utilizzation of the wifi.
Signed-off-by: Ansuel Smith <
[email protected]
>
iwinfo.c
patch
|
blob
|
history
diff --git
a/iwinfo.c
b/iwinfo.c
index 1e172ee5ae79c0421567af56db223cade15884ea..c723fbcb979b89874c62f5a70a82dec88e01bb12 100644
(file)
--- a/
iwinfo.c
+++ b/
iwinfo.c
@@
-364,6
+364,8
@@
rpc_iwinfo_info(struct ubus_context *ctx, struct ubus_object *obj,
rpc_iwinfo_call_int("mode", iw->mode, IWINFO_OPMODE_NAMES);
rpc_iwinfo_call_int("channel", iw->channel, NULL);
+ rpc_iwinfo_call_int("center_chan1", iw->center_chan1, NULL);
+ rpc_iwinfo_call_int("center_chan2", iw->center_chan2, NULL);
rpc_iwinfo_call_int("frequency", iw->frequency, NULL);
rpc_iwinfo_call_int("frequency_offset", iw->frequency_offset, NULL);